package com.yunsc.store.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yunsc.store.entity.YunscStoreAddressEntity;
import com.yunsc.store.vo.StoreAddressVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商家地址记录表
 *
 * @author adan
 * @email 2028038953@qq.com
 * @date 2024-04-22 11:35:50
 */
@Mapper
public interface YunscStoreAddressDao extends BaseMapper<YunscStoreAddressEntity> {

    /**
     * 查询商家地址列表
     *
     * @param page    分页对象
     * @param search  搜索条件
     * @param type    类型
     * @param storeId 商家ID
     * @return 商家地址列表
     */
    Page<StoreAddressVO> selectStoreAddress(Page<YunscStoreAddressEntity> page,
                                            @Param("search") String search,
                                            @Param("type") Integer type,
                                            @Param("storeId") Integer storeId);
}
